import allure
from selenium import webdriver
class TestBaidu():
    def __init__(self):
        self.driver = webdriver.Chrome()
        self.driver.maximize_window()
        self.driver.implicitly_wait(30)
    def test_baidu(self):
        #打开百度
        self.driver.get('https://www.baidu.com')
        self.driver.find_element_by_xpath("//input[@class='s_ipt']").send_keys('python')
        self.driver.find_element_by_xpath("//input[@class='btn self-btn bg s_btn']").click()
